package com.cw.auth.domain.convert;

import com.cw.auth.domain.entity.AuthPermissionBO;
import com.cw.auth.domain.entity.AuthRolePermissionBO;
import com.cw.auth.infra.basic.entity.AuthPermission;
import com.cw.auth.infra.basic.entity.AuthRolePermission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthRolePermissionConvert {
    AuthRolePermissionConvert INSTANCE = Mappers.getMapper(AuthRolePermissionConvert.class);


    // 通过AuthPermissionBO转化为AuthPermission
    AuthRolePermission convertBoToEntity(AuthRolePermissionBO authRolePermissionBO);

    AuthRolePermissionBO convertEntityToBo(AuthRolePermission authRolePermission);

}
